package com.jhg.drgclinicalpathway.domain.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统角色表")
@TableName("SysRole")
public class SysRole {
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("备注")
    private String mark;

    @ApiModelProperty("创建时间")
    private Date ctime;

    @ApiModelProperty("角色标签，其他特殊标记")
    private String tags;

    @ApiModelProperty("启用、停用")
    private Boolean enable;

    @ApiModelProperty("是否超级管理员")
    private Boolean superadm;

    @ApiModelProperty("能访问哪些页面")
    @TableField(exist = false)
    private List<String> perms;

}
